package com.neu.po;

import java.util.Date;

public class Plan {
    private int plan_id;
    private int plan_docid;
    private Date plan_workdate;
    private int plan_worktime;
    private int plan_plancount;
    private int plan_bookcount;

    private Doctor doctor;

    public String getStringPwtime(){
        switch (plan_worktime) {
            case 1:
                return "上午";
            case 2 :
                return "下午";
            default:
                return "";
        }
    }

    public int getPlan_id() {
        return plan_id;
    }

    public void setPlan_id(int plan_id) {
        this.plan_id = plan_id;
    }

    public int getPlan_docid() {
        return plan_docid;
    }

    public void setPlan_docid(int plan_docid) {
        this.plan_docid = plan_docid;
    }

    public Date getPlan_workdate() {
        return plan_workdate;
    }

    public void setPlan_workdate(Date plan_workdate) {
        this.plan_workdate = plan_workdate;
    }

    public int getPlan_worktime() {
        return plan_worktime;
    }

    public void setPlan_worktime(int plan_worktime) {
        this.plan_worktime = plan_worktime;
    }

    public int getPlan_plancount() {
        return plan_plancount;
    }

    public void setPlan_plancount(int plan_plancount) {
        this.plan_plancount = plan_plancount;
    }

    public int getPlan_bookcount() {
        return plan_bookcount;
    }

    public void setPlan_bookcount(int plan_bookcount) {
        this.plan_bookcount = plan_bookcount;
    }

    public Doctor getDoctor() {
        return doctor;
    }

    public void setDoctor(Doctor doctor) {
        this.doctor = doctor;
    }

    @Override
    public String toString() {
        return "Plan{" +
                "plan_id=" + plan_id +
                ", plan_docid=" + plan_docid +
                ", plan_workdate=" + plan_workdate +
                ", plan_worktime=" + plan_worktime +
                ", plan_plancount=" + plan_plancount +
                ", plan_bookcount=" + plan_bookcount +
                ", doctor=" + doctor +
                '}';
    }
}
